#include<iostream>
#include<string>
using namespace std;
string fun(string s)
{
	string ans;
	char c = s[2];
	int length = c - '0';
	bool f = 0;
	if (c == '1') {
		length = 10 + s[3] - '0';
		f = 1;
	}
	int idx = 3;
	if (f)idx = 4;
	while (length--) {
		ans += s[idx++];
	}
	return ans;
}
int main()
{

	return 0;
}